package edu.jd.block_chain.security.register;

import edu.jd.block_chain.common.Result;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @descriptions:
 * @data: 2021/11/23 10:29
 */

@RestController
@RequestMapping("/security")
public class RegisterAPI {
    @Resource
    private RegisterService registerService;


    @RequestMapping("/register")
    public Result addUser(@RequestBody Register register){
         registerService.createActor(register);
        return Result.success();
    }


}




